<template>
	<view>

		<!--  最上面 -->
		<view class="header">
			<view class="building-header2">
				<view class="building-header-left">
					<view class="line"></view>
					合作品牌
				</view>
			</view>
			<view class="baner-list">
				 <view class="banner-item">
				 <image class="baneritem-image" src="../../static/images/common/build1.png"></image>
				 </view>
				 <view class="banner-item">
				 <image class="baneritem-image" src="../../static/images/common/build1.png"></image>
				 </view>
				 <view class="banner-item">
				 <image class="baneritem-image" src="../../static/images/common/build1.png"></image>
				 </view>
			</view>
		</view>


		<!-- 下面 -->
		<view class="list-content">
			<view class="building-list">
				<view class="building-header">
					<view class="building-header-left">
						<view class="line"></view>
						楼盘套餐
					</view>

				</view>
				<view class="building-list-content">
					<view class="building-item-content">
						<image class="building-item-image" mode="aspectFit" src="../../static/images/common/build2.png">
						</image>
						<view class="building-item-mark">
							<view class="building-item-title">某某某套餐</view>
							<view class="building-item-desc">150-180m²<view class="building-item-desc2">￥9999</view></view>
							
							<view class="building-item-desc">某某某某某某套餐</view>
						</view>
					</view>
					<view class="building-item-content">
						<image class="building-item-image" mode="aspectFit" src="../../static/images/common/build1.png">
						</image>
						<view class="building-item-mark">
								<view class="building-item-title">某某某套餐</view>
								<view class="building-item-desc">150-180m²<view class="building-item-desc2">￥9999</view></view>
								
								<view class="building-item-desc">某某某某某某套餐</view>
							</view>
						</view>
					</view>
					
					<view class="building-list-content">
						<view class="building-item-content">
							<image class="building-item-image" mode="aspectFit" src="../../static/images/common/build2.png">
							</image>
							<view class="building-item-mark">
								<view class="building-item-title">某某某套餐</view>
								<view class="building-item-desc">150-180m²<view class="building-item-desc2">￥9999</view></view>
								
								<view class="building-item-desc">某某某某某某套餐</view>
							</view>
						</view>
						<view class="building-item-content">
							<image class="building-item-image" mode="aspectFit" src="../../static/images/common/build1.png">
							</image>
							<view class="building-item-mark">
									<view class="building-item-title">某某某套餐</view>
									<view class="building-item-desc">150-180m²<view class="building-item-desc2">￥9999</view></view>
									
									<view class="building-item-desc">某某某某某某套餐</view>
								</view>
							</view>
						</view>
				</view>

			</view>
			


  <view class="flex">
			<view class="line4"></view>
			
			<view class="tabbaer">
				<image class="bar" src="../../static/images/ico/home_select.png"></image>
				<image class="bar" src="../../static/images/ico/time_unselect.png" @click="yuyue()"></image>
				<image class="bar" src="../../static/images/ico/me_unselect.png" @click="me()"></image>
			</view>
			 
			 <view class="bar5">
			<view class="bar2">首页</view>
			<view class="bar3">预约</view>
			<view class="bar4">我的</view>
			</view>
	     </view>		
			
			
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
      yuyue(){
		  uni.switchTab({
		  	url:"/pages/appointment/index2"
		  })
	  },
        me(){
				uni.switchTab({
					url:"/pages/we/index"
				})
			}
		}
	}
</script>

<style>
	.list-content {
		background: #F5F5F5;
		margin-top: 40rpx;
	}


	.building-item-title {
		font-size: 35rpx;
		font-weight: 600;
		color: black;
		line-height: 24rpx;
		color: rgb(0, 0, 0,0.8);
	}

	.building-list-content {
		box-sizing: border-box;
		overflow-x: auto;
		margin-top: 20rpx;
		display: flex;
		margin-left: 40rpx;


	}

	.building-item-content {
		width: 382rpx;
		height: 700rpx;
		margin-right: 40rpx;
		position: relative;
	}


	/* 热改楼盘展示图片 */
	.building-item-image {
		width: 382rpx;
		height: 510rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	/* 笼罩阴影透明部分 */
	.building-item-mark {
		/* position: absolute; //子元素使用 absolute 父元素必须为相对定位 否则它"丢"了 */
		bottom: 0px;
		left: 0px;
		width: 382rpx;
		height: 130rpx;
		margin-top: -10rpx;
		background: white;
		border-radius: 0rpx 0rpx 16rpx 16rpx;
		box-sizing: border-box;
		/* 简写 */
		padding: 24rpx 12rpx;

		/* padding-left: 24rpx;
		padding-top: 12rpx;
		padding-bottom: 12rpx;
		padding-right: 24rpx; */
	}


	* {
		margin: 0 auto;
		padding: 0 0;
	}

	.content {
		width: 100vw;
		height: 100vh;
		background-color: #F5F5F5;
		box-sizing: border-box; //盒子模型
	}

	.building-list {
		background: #f0f3ff;
		box-sizing: border-box;
		padding-left: 30rpx;
		padding-top: 34rpx;
		padding-bottom: 28rpx;
		position: relative;
		margin-bottom: 40rpx;
	}



	.building-header {
		width: 100%;
		display: flex;
		margin-left: 10rpx;
		align-items: center;
		justify-content: space-between;
	}

	.building-header-left {
		font-size: 40rpx;
		font-weight: 700;
		color: #333333;
		line-height: 28rpx;
		margin-left: 37rpx;
		display: flex;
		align-items: left;
	}

	.line {
		width: 6rpx;
		height: 28rpx;
		background: #3d9c36;
		margin-right: 20rpx;
		margin-left: -100rpxz;
	}

	.building-header-right {
		font-size: 24rpx;
		font-weight: 500;
		color: #333333;
		line-height: 24rpx;
		margin-left: 300rpx;
		margin-right: 10rpx;
	}

	.building-header-right::after {
		content: ">";
		margin-left: 10rpx;
		margin-right: 45rpx;
	}

	.header {
		margin-top: 20rpx;
	}


	.building-header2 {
		width: 100%;
		display: flex;
		margin-left: 40rpx;
		align-items: center;
		justify-content: space-between;
	}

/* 	水平滚动核心代码 */
	.baner-list{
     overflow-x:scoll;
     display: flex;
	}
	.banner-item{
		height: 168rpx;
		width: 280rpx;
		position: relative;
		border-radius: 8rpx;
		margin-left: 30rpx;
		margin-top: 20rpx;
	}
	.baneritem-image{
		margin-left: 10rpx;
		height: 168rpx;
		width: 280rpx;
		position: relative;
		border-radius: 8rpx;
	}
	.baneritem-image::after{
		font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
		background-color: rgb(0, 0, 0,0.25);
		content: 'OPPEIN';
		height: 100%;
		width: 100%;
		color: white;
		line-height: 168rpx;
		text-align: center;
		position: absolute;
		font-size: 20rpx;
		top: 0;
		margin: auto;
	}
.building-item-desc{
	box-sizing: border-box;
	display: flex;
	font-size: 20rpx;
	margin-top: 15rpx;
   color: rgb(0, 0, 0,0.5);
   line-height: 17rpx;
}
.building-item-desc2{
	color: red;
	font-size: 35rpx;
	margin-left: 90rpx;
}
	.building-list2 {
		background: #f0f3ff;
		box-sizing: border-box;
		padding-left: 30rpx;
		padding-top: 20rpx;
		padding-bottom: 28rpx;
		position: relative;
		margin-bottom: 40rpx;
	}
	.tabbaer{
			 display: flex;
			 box-sizing: border-box;
		}
		.bar{
			width: 50rpx;
			height: 50rpx;
			margin: 100rpx;
			margin-bottom:20rpx;
		}
		.bar5{
			display: flex;
			box-sizing: border-box;
		}
	.bar2{
		width: 20vh;
		color: rgb(0, 0, 0,0.8);
		font-size: 10rpx;
	    margin-left: 100rpx;
		margin-top: -10rpx;
	}
	.bar3{
		width: 20vh;
		color: rgb(0, 0, 0,0.8);
		font-size: 10rpx;
	    margin-left: -48rpx;
		margin-top: -10rpx;
	}
	.bar4{
		width: 20vh;
		color: rgb(0, 0, 0,0.8);
		font-size: 10rpx;
	    margin-left: -48rpx;
		margin-top: -10rpx;
	}
	.line4 {
		position: relative;
		height:  2rpx;
		width: 900rpx;
		background: rgb(0, 0, 0,0.1);
		margin-bottom: -80rpx;
	}
	.flex{
		position: fixed;
		bottom: 0;
		background-color: white;
	}
</style>
